<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'planRead.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<jsp:include page="../index.jsp"></jsp:include>
  </head>
  
  <body>
    <h4>[ 일정 내용 ]</h4>
    <table>
    <tr>
    	<td align="center" style="width: 100; background-color: efefef;">제목</td>
    	<td align="center">${plan.title}</td>
    </tr>
    <tr>
    	<td align="center" style="width: 100; background-color: efefef;">시작일</td>
    	<td align="center">${plan.startdate} </td>
    </tr>
    <tr>
    	<td align="center" style="width: 100; background-color: efefef;">종료일</td>
    	<td align="center">${plan.enddate}</td>
    </tr>
    <tr>
    	<td align="center" style="width: 100; background-color: efefef;">장소</td>
    	<td align="center">${plan.place}</td>
    </tr>
    <tr>
    	<td align="center" style="width: 100; background-color: efefef;">메모</td>
    	<td>
    	<textarea name="plan.memo" readonly="readonly" rows="7" style="width: 350">${plan.memo}</textarea></td>
    </tr>
    <tr>
    	<td align="center" colspan="2">
    	<input type="button" value="수정" style="width: 70" onclick="location.href='<s:url value="/plan/planEditForm.action?num="/>${plan.num}';"/>
    	<input type="button" value="삭제" style="width: 70" onclick="if(confirm('정말 삭제하시겠습니까?')==true){ location.href='<s:url value="/plan/planDelete.action?num="/>${plan.num}';}"/>
     	</td>
    </tr> 
    </table>
   </body>
</html>
